sql error : ERROR: invalid input syntax for type integer: "" CONTEXT: unnamed portal parameter $1 = ''